package com.zhk.entry.mapper;


import com.zhk.entry.dao.BaseDaoService;
import com.zhk.entry.util.IThreadConn;

import java.sql.Connection;
import java.util.List;
import java.util.Observable;

public interface UserMapperService<User> extends BaseDaoService<User> {

//     void setObserver(String name, Observable observable, IThreadConn iThreadConn);
    /**
     * 全部查询
     *
     * @return
     */
    List<User> getUserAll();

    /**
     * 根据条件查询
     *
     * @param user
     * @return
     */
    List<User> getUser(User user, Connection conn);

    /**
     * 新增
     *
     * @param user
     * @return
     */
    String saveUser(User user, Connection conn);

    /**
     * 修改
     *
     * @param user
     * @return
     */
    String updateUser(User user);

    /**
     * 删除用户
     *
     * @param user
     * @return
     */
    String deleteUser(User user);
}
